package com.entrogy.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @ClassName SchoolThididUrlEntity
 * @Description 用于表示学校对应实义德后台管理系统url以及人员组id的实体类
 * @Author luoxingjiang
 * @Date 2019/8/20 0020 下午 3:48
 * @Version 1.0
 **/
@SuppressWarnings("serial")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class SchoolThdidUrlEntity {

    // 自增主键
    private Integer id;

    // 每个学校对应的设备管理系统后台的url
    private String pathUrl;

    // 学校id
    private Integer schoolCode;

    // 接口访问token
    private String accessToken;

    // 设备型号
    private String deviceModel;

    private Integer thdidSystemId;

    // 学生组id
    private Integer studentGroupId;

    // 家长组id
    private Integer parentGroupId;

    // 老师组id
    private Integer teacherGroupId;

    // 访客组id
    private Integer visitorGroupId;

    @Override
    public boolean equals(Object schoolThdidUrlEntity){
        return this.getSchoolCode().equals(((SchoolThdidUrlEntity)schoolThdidUrlEntity).getSchoolCode());
    }

    @Override
    public int hashCode() {
        return this.schoolCode.hashCode();
    }
}
